﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using F_MODEL;
using F_BLL;

namespace MvcApplication1.Controllers
{
    public class CouponsController : zyl_LoginController
    {
        //
        // GET: /Coupons/

        /// <summary>
        /// 优惠券数据信息显示
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        [HttpGet]
        public List<Coupons> CouponsSel()
        {
            int id = 0;
            UserInfo m = new UserInfo();
            m = mod();
            if(m!=null)
             id = m.userId;
            CouponsBll bll = new F_BLL.CouponsBll();
            return bll.CouponsSel(id);
        }

      

    }
}
